Automating ActionScript Projects with Eclipse and Ant by Sidney de Koning

Automating ActionScript Projects with Eclipse and Ant by Sidney de Koning

Author:Sidney de Koning [Sidney de Koning]
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Hardware / Handheld Devices
ISBN: 9781449307721
Publisher: O'Reilly Media
Published: 2011-10-09T16:00:00+00:00


Note

For more information on the different versions of FDT, see http://www.fdt.powerflasher.com/developer-tools/fdt/features/.

If you have the Max version, proceed as follows. First, we need to call the debugger with fdt.startDebugger with the correct project name. We do this just as we did with the compiling—with ${FDTProject}. Then, we set switchperspectiveonbreakpoint to true. Now, when we set a breakpoint in our code (by double-clicking on the line gutter at that specific point), FDT actually switches to the Debugger View and introspects the code on that breakpoint.

The default for this option is true, so you only have to set it explicitly if you don’t want to use it:

<target name="debug-fdt" description="Debug a SWF with FDT Ant Tasks" depends="create-timestamp"> <fdt.startDebugger projectname="${FDTProject}" switchperspectiveonbreakpoint="true" /> <fdt.launch.application debug="true" projectname="${FDTProject}" mainclass="${project.classpath}${project.document.class}${project.file.extension}" target="${project.debug.path}${file.separator}${project.document.class}_DEBUG_${current.date.time}.swf" compilerarguments="-verbose-stacktraces=true" startswf="true" swflauncher="External SWF Viewer" /> <eclipse.refreshLocal resource="${project.name}" depth="infinite" /> </target>

After calling fdt.startDebugger, we call fdt.launch.application like we did when we were compiling, only now we set the debug flag to true, change the target directory to output in our debug folder, and add _DEBUG_ to the filename of the outputted SWF file to differentiate between a debugged SWF and a nondebugged SWF (just like we did when we called the compiler directly).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.